﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/EHTAdmin.Master" AutoEventWireup="true" CodeBehind="EHTContactUs.aspx.cs" Inherits="EHTWebsiteProject.Administrator.EHTContactUs" %>
<%@ Register src="Controls/PaggingControl.ascx" tagname="PaggingControl" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MenuModulContent" runat="server">
 <div class="MenuSub-Left" >
        <table>
            <tr>
                <td> <img alt="" src="../images/EHTgiaodien/icon-48-category.png" width="48px" height="48px" /></td>               
                <td><asp:Label ID="lbContactUS" runat="server" Text="Quản lý liên hệ " ></asp:Label></td>                
            </tr>
        </table>           
    </div>
    <div class="MenuSub-Right" align="right">
        <table style="height:60px">
            <tr>                                                                                               
                <td valign="middle">
                    <div class="add-edit-del">
                         <asp:ImageButton ID="ImgDel" ImageUrl="~/images/EHTgiaodien/icon-32-delete.png" 
                                runat="server" width="32px" height="32px" CssClass="imagboder" 
                                OnClientClick="return confirm('Are you sure you want to delete?');" 
                             onclick="ImgDel_Click" />                                                     
                            <br />
                            <asp:Label ID="lbDel" runat="server" Text="Xóa"></asp:Label>       
                    </div>
                </td>
               

                 <td valign="middle">
                    <div class="add-edit-del">
                        <a href="#">
                            <img alt="" src="../images/EHTgiaodien/icon-32-help.png" width="32px" height="32px" class="imagboder" /><br />
                            <asp:Label ID="lbHelp" runat="server" Text="Trợ giúp"></asp:Label>
                        </a>
                    </div>
                </td>                
            </tr>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
  <div style="padding-top:10px;">
      <asp:Panel ID="plContactVN" runat="server">
        <asp:Repeater ID="rpContactVN" runat="server" 
              onitemdatabound="rpContactVN_ItemDataBound" >           
        <HeaderTemplate>
            <table ID="table" border="0" cellpadding="0" cellspacing="0" >
                 <thead>
                    <tr>
                                     <th>
                                        <asp:CheckBox ID="ckAll" runat="server" AutoPostBack="true" OnCheckedChanged="CheckAllVN" />
                                    </th>                        
                                   
                                    <th>
                                        <asp:Label ID="lbID" runat="server" Text="STT"></asp:Label>
                                    </th>
                                    <th>
                                        <asp:Label ID="lbTen" runat="server" Text=" Họ tên"></asp:Label>                            
                                    </th>
                                     <th>
                                        <asp:Label ID="lbDienThoai" runat="server" Text=" Điện thoại"></asp:Label>                            
                                    </th>
                                    <th>
                                        <asp:Label ID="lbMota" runat="server" Text=" Nội dung "></asp:Label>                             
                                    </th>
                                    <th>
                                        <asp:Label ID="lbTrangThai" runat="server" Text=" Trạng thái "></asp:Label>                             
                                    </th>      
                                    <th>
                                        <asp:Label ID="lbNgayLienHe" runat="server" Text=" Ngày liên hệ "></asp:Label>                             
                                    </th>                                                                                                                  
                    </tr>
                 </thead>
                 <tbody>            
        </HeaderTemplate>
        <ItemTemplate>
                 <tr>
                        <td>
                            <asp:CheckBox ID="ckMenu"  runat="server" />
                            <asp:Label ID="lbDelID" runat="server" Visible="false" Text='<%#Eval("LienHeID")%>'></asp:Label>
                        </td>
                        <td style="width:50px">
                            <%#Eval("IndexId") %>
                        </td>
                        <td style="width:200px">
                           <a href='EHTContactUsDetails.aspx?LienHeID=<%#Eval("LienHeID") %>' class="linkedit">
                             <%#Eval("HoTen")%>
                           </a>
                        </td>
                        <td>
                            <%#Eval("DienThoai")%>
                        </td>
                        <td style="width:600px">
                           <%#Eval("NoiDung")%>
                        </td>  
                         <td>
                             <asp:Label ID="lbTrangThai" runat="server" Text='<%#Eval("TrangThaiDoc")%>' Visible="false"></asp:Label>
                             <asp:Literal ID="ltrTrangThai" runat="server" Text="Trạng thái"></asp:Literal>
                        </td> 
                        <td>
                             <%#DataBinder.Eval(Container.DataItem, "NgayLienHe", "{0:d/M/yy}")%>                                               
                        </td>                        
                    </tr>
        </ItemTemplate>
        <FooterTemplate>
                </tbody>
             </table>
        </FooterTemplate>
    </asp:Repeater>
      </asp:Panel>
      <asp:Panel ID="plCOntactOther" runat="server">
        <asp:Repeater ID="rpContactOther" runat="server" 
              onitemdatabound="rpContactOther_ItemDataBound" >           
        <HeaderTemplate>
            <table ID="table" border="0" cellpadding="0" cellspacing="0" >
                 <thead>
                    <tr>
                                      <th>
                                        <asp:CheckBox ID="ckAll1" runat="server" AutoPostBack="true" OnCheckedChanged="CheckAllOther" />
                                    </th>                        
                                   
                                    <th>
                                        <asp:Label ID="lbID" runat="server" Text="Number Order"></asp:Label>
                                    </th>
                                    <th>
                                        <asp:Label ID="lbTen" runat="server" Text=" Full Name"></asp:Label>                            
                                    </th>
                                     <th>
                                        <asp:Label ID="lbDienThoai" runat="server" Text=" Phone"></asp:Label>                            
                                    </th>
                                    <th>
                                        <asp:Label ID="lbMota" runat="server" Text=" Content "></asp:Label>                             
                                    </th>
                                    <th>
                                        <asp:Label ID="lbTrangThai" runat="server" Text=" Status "></asp:Label>                             
                                    </th>      
                                    <th>
                                        <asp:Label ID="lbNgayLienHe" runat="server" Text=" Date "></asp:Label>                             
                                    </th>                                                                                                                               
                    </tr>
                 </thead>
                 <tbody>            
        </HeaderTemplate>
        <ItemTemplate>
                 <tr>
                        <td>
                            <asp:CheckBox ID="ckMenu"  runat="server" />
                            <asp:Label ID="lbDelID" runat="server" Visible="false" Text='<%#Eval("LienHeID")%>'></asp:Label>
                        </td>
                        <td style="width:50px">
                            <%#Eval("IndexId") %>
                        </td>
                        <td style="width:200px">
                           <a href='EHTContactUsDetails.aspx?LienHeID=<%#Eval("LienHeID") %>' class="linkedit">
                             <%#Eval("HoTen")%>
                           </a>
                        </td>
                        <td>
                            <%#Eval("DienThoai")%>
                        </td>
                        <td style="width:600px">
                           <%#Eval("NoiDung")%>
                        </td>  
                         <td>
                             <asp:Label ID="lbTrangThai" runat="server" Text='<%#Eval("TrangThaiDoc")%>' Visible="false"></asp:Label>
                             <asp:Literal ID="ltrTrangThai" runat="server" Text="Trạng thái"></asp:Literal>
                        </td> 
                        <td>
                             <%#Eval("NgayLienHe")%>                       
                        </td>                
                    </tr>
        </ItemTemplate>
        <FooterTemplate>
                </tbody>
             </table>
        </FooterTemplate>
    </asp:Repeater>
      </asp:Panel>        
    </div>
     <div align="center" style="padding:10px 0px 10px 0px">        
        <table>
            <tr>
                <td valign="top">
                    <asp:Label ID="lbHienThi" runat="server" Text="Hiển thị" ></asp:Label>
                    <asp:DropDownList ID="ddlSize" runat="server" AutoPostBack="true" 
                        onselectedindexchanged="ddlSize_SelectedIndexChanged">
                        <asp:ListItem Value="5" Text="5"></asp:ListItem>
                        <asp:ListItem Value="10" Text="10"></asp:ListItem>
                        <asp:ListItem Value="20" Text="20"></asp:ListItem>
                        <asp:ListItem Value="30" Text="30"></asp:ListItem>
                        <asp:ListItem Value="50" Text="50"></asp:ListItem>
                        <asp:ListItem Value="100" Text="100"></asp:ListItem>
                        <asp:ListItem Value="-1" Text="all"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <uc1:PaggingControl ID="PaggingControl1" PageSize="30" runat="server" />
                </td>
            </tr>
        </table>
        
    </div>  
</asp:Content>
